<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:15:37 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git replace</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Git">
                                Git                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="4a5c9d207d6a63b67e1bf87edc7302409a76c7644fe5d05110aecdf036c50967/f2" data-source="git-replace" onmousemove="i18n(this)">git-replace</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="6b2c0ad2c6b51444f83e217bb4e2e71221c270e66bfed0d3f902e58fb7df06a9/5b" data-source="git-replace - Create, list, delete refs to replace objects" onmousemove="i18n(this)">git-replace &mdash; &scy;&ocy;&zcy;&dcy;&acy;&vcy;&acy;&tcy;&softcy;, &pcy;&iecy;&rcy;&iecy;&chcy;&icy;&scy;&lcy;&yacy;&tcy;&softcy;, &ucy;&dcy;&acy;&lcy;&yacy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &dcy;&lcy;&yacy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-css">git replace <span class="hljs-selector-attr">[-f]</span> &lt;<span class="hljs-selector-tag">object</span>&gt; &lt;replacement&gt;
git replace <span class="hljs-selector-attr">[-f]</span> <span class="hljs-attr">--edit</span> &lt;<span class="hljs-selector-tag">object</span>&gt;
git replace <span class="hljs-selector-attr">[-f]</span> <span class="hljs-attr">--graft</span> &lt;commit&gt; <span class="hljs-selector-attr">[&lt;parent&gt;&hellip;&ZeroWidthSpace;]</span>
git replace <span class="hljs-selector-attr">[-f]</span> <span class="hljs-attr">--convert-graft-file</span>
git replace -d &lt;<span class="hljs-selector-tag">object</span>&gt;&hellip;&ZeroWidthSpace;
git replace <span class="hljs-selector-attr">[--format=&lt;format&gt;]</span> <span class="hljs-selector-attr">[-l [&lt;pattern&gt;]</span>]</pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="b90063bc7752ddd7beceecfa9f0e464b165b8a9c730ac771c1d6a6f87db6848e/97" data-source="Adds a &lt;code&gt;replace&lt;/code&gt; reference in &lt;code&gt;refs/replace/&lt;/code&gt; namespace." onmousemove="i18n(this)">&Dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&ucy;  <code>replace</code>  &vcy; &pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&scy;&tcy;&vcy;&ocy; &icy;&mcy;&iecy;&ncy;  <code>refs/replace/</code> .</span></p> <p><span data-i18n="ada08403e0270c4f5237de14502131f31c391d31cc20ae3e15794bef469bc5f2/3b" data-source="The name of the &lt;code&gt;replace&lt;/code&gt; reference is the SHA-1 of the object that is replaced. The content of the &lt;code&gt;replace&lt;/code&gt; reference is the SHA-1 of the replacement object." onmousemove="i18n(this)">&Icy;&mcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;  <code>replace</code>  &mdash; &ecy;&tcy;&ocy; SHA-1 &zcy;&acy;&mcy;&iecy;&ncy;&yacy;&iecy;&mcy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;. &Scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy;  <code>replace</code>  &mdash; &ecy;&tcy;&ocy; SHA-1 &zcy;&acy;&mcy;&iecy;&shchcy;&acy;&yucy;&shchcy;&iecy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;.</span></p> <p><span data-i18n="168b4912e59f8a58d138e912ff0ff7dd26f18b0a5beadad0ceffd428d105e762/34" data-source="The replaced object and the replacement object must be of the same type. This restriction can be bypassed using &lt;code&gt;-f&lt;/code&gt;." onmousemove="i18n(this)">&Zcy;&acy;&mcy;&iecy;&ncy;&yacy;&iecy;&mcy;&ycy;&jcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy; &icy; &zcy;&acy;&mcy;&iecy;&shchcy;&acy;&yucy;&shchcy;&icy;&jcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &bcy;&ycy;&tcy;&softcy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &tcy;&icy;&pcy;&acy;. &Ecy;&tcy;&ocy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&icy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&bcy;&ocy;&jcy;&tcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>-f</code> .</span></p> <p><span data-i18n="50c3d7672ec69f039cd7d6d4789d75825019995bb03f886bc369f64d8147bb8b/6a" data-source="Unless &lt;code&gt;-f&lt;/code&gt; is given, the &lt;code&gt;replace&lt;/code&gt; reference must not yet exist." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;  <code>-f</code> , &scy;&scy;&ycy;&lcy;&kcy;&acy;  <code>replace</code>  &iecy;&shchcy;&iecy; &ncy;&iecy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy;.</span></p> <p><span data-i18n="4768d366d36aaf394501f3feb394d35dcac99fbc3e8bcdf8127e5ebdc25c5be5/ce" data-source="There is no other restriction on the replaced and replacement objects. Merge commits can be replaced by non-merge commits and vice versa." onmousemove="i18n(this)">&Dcy;&rcy;&ucy;&gcy;&icy;&khcy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&icy;&jcy; &ncy;&acy; &zcy;&acy;&mcy;&iecy;&shchcy;&acy;&iecy;&mcy;&ycy;&iecy; &icy; &zcy;&acy;&mcy;&iecy;&shchcy;&acy;&yucy;&shchcy;&icy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; &ncy;&iecy;&tcy;. &Kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy;&ycy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;&mcy;&icy; &bcy;&iecy;&zcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &icy; &ncy;&acy;&ocy;&bcy;&ocy;&rcy;&ocy;&tcy;.</span></p> <p><span data-i18n="81557e541d8b877d528e2d242a96d87c10505490915707c84dc08ddf6ebd5e5a/d9" data-source="Replacement references will be used by default by all Git commands except those doing reachability traversal (prune, pack transfer and fsck)." onmousemove="i18n(this)">&Scy;&scy;&ycy;&lcy;&kcy;&icy; &ncy;&acy; &zcy;&acy;&mcy;&iecy;&ncy;&ucy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &vcy;&scy;&iecy;&mcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;&icy;  Git , &zcy;&acy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &tcy;&iecy;&khcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy; &ocy;&bcy;&khcy;&ocy;&dcy; &dcy;&ocy;&scy;&tcy;&icy;&zhcy;&icy;&mcy;&ocy;&scy;&tcy;&icy; (&ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy;, &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&acy;&yacy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&acy; &icy; fsck).</span></p> <p><span data-i18n="3a6017f8293b488ce55526861da31c13341951839f21edc5715381593c6bbb82/80" data-source="It is possible to disable the use of replacement references for any command using the &lt;code&gt;--no-replace-objects&lt;/code&gt; option just after &lt;code&gt;git&lt;/code&gt;." onmousemove="i18n(this)">&Mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy; &dcy;&lcy;&yacy; &lcy;&yucy;&bcy;&ocy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &ocy;&pcy;&tscy;&icy;&yucy;  <code>--no-replace-objects</code>  &scy;&rcy;&acy;&zcy;&ucy; &pcy;&ocy;&scy;&lcy;&iecy;  <code>git</code> .</span></p> <p><span data-i18n="8ef28a4f5a81ed444486070fccd5072365e0750ba6e260cdcb47e39006528805/43" data-source="For example if commit &lt;code&gt;foo&lt;/code&gt; has been replaced by commit &lt;code&gt;bar&lt;/code&gt;:" onmousemove="i18n(this)">&Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;  <code>foo</code>  &bcy;&ycy;&lcy; &zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy; &ncy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;  <code>bar</code> :</span></p> <div> <div> <pre class="hljs language-lua">$ git <span class="hljs-comment">--no-replace-objects cat-file commit foo</span></pre> </div> </div> <p><span data-i18n="65355b144a17552713b9cf630e00291dca1831b118cab7cd373199009222afac/0b" data-source="shows information about commit &lt;code&gt;foo&lt;/code&gt;, while:" onmousemove="i18n(this)">&pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&iecy;  <code>foo</code>  , &pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy;:</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-variable">$ </span>git cat-file commit foo</pre> </div> </div> <p><span data-i18n="4bd3c9668f48fe798e6583096b816e3d43ebcab67b6f3b16a974ad20d2f4c1b0/1f" data-source="shows information about commit &lt;code&gt;bar&lt;/code&gt;." onmousemove="i18n(this)">&pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;  <code>bar</code> .</span></p> <p><span data-i18n="90e71ed1d918752cab6d9f1b0a8c90b620017d0192aa8b8b2266ab57a9a4228a/af" data-source="The &lt;code&gt;GIT_NO_REPLACE_OBJECTS&lt;/code&gt; environment variable can be set to achieve the same effect as the &lt;code&gt;--no-replace-objects&lt;/code&gt; option." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ucy;&yucy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_NO_REPLACE_OBJECTS</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &dcy;&lcy;&yacy; &dcy;&ocy;&scy;&tcy;&icy;&zhcy;&iecy;&ncy;&icy;&yacy; &tcy;&ocy;&gcy;&ocy; &zhcy;&iecy; &ecy;&fcy;&fcy;&iecy;&kcy;&tcy;&acy;, &chcy;&tcy;&ocy; &icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;  <code>--no-replace-objects</code> .</span></p> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-replace.txt--f"><span data-i18n="0e6503c1ece40e4ea7668463248ea2716eb37643f2c2c605f8bcee4d195a1705/83" data-source="-f" onmousemove="i18n(this)">-f</span></dt> <dt id="Documentation/git-replace.txt---force"><span data-i18n="be262a109369ff4174b4b7a7aa917a83ca99dc94093be7d497384bb8c0f9cee6/ef" data-source="--force" onmousemove="i18n(this)">--force</span></dt> <dd> <p><span data-i18n="37b90f5ac1d45a760dbffbdbd4484110ba5d9ce3dc33597f36a6b9952bd41490/86" data-source="If an existing replace ref for the same object exists, it will be overwritten (instead of failing)." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&acy; &zcy;&acy;&mcy;&iecy;&ncy;&ucy; &dcy;&lcy;&yacy; &tcy;&ocy;&gcy;&ocy; &zhcy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &ocy;&ncy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&acy; (&vcy;&mcy;&iecy;&scy;&tcy;&ocy; &scy;&bcy;&ocy;&yacy;).</span></p> </dd> <dt id="Documentation/git-replace.txt--d"><span data-i18n="50e09407a18bedd64baf0b99825a8178d7446731615b85452ea6b99573469dcc/b1" data-source="-d" onmousemove="i18n(this)">-d</span></dt> <dt id="Documentation/git-replace.txt---delete"><span data-i18n="c9c4fc4dd65bbbb4c4f46d1de6e0791dbff867bd9880040eb5fc4bf825f9c0e6/a0" data-source="--delete" onmousemove="i18n(this)">--delete</span></dt> <dd> <p><span data-i18n="cde67a051353bd77d4d3051211127015a228aeb64139fbc4c28f2394b6842b2a/9a" data-source="Delete existing replace refs for the given objects." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&icy;&tcy;&softcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy; &dcy;&lcy;&yacy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;.</span></p> </dd> <dt id="Documentation/git-replace.txt---editltobjectgt"><span data-i18n="a42128e81ef83c3013524ff269a8147760d2d37f09a6cfcae0309c1f08167b82/87" data-source="--edit &amp;lt;object&amp;gt;" onmousemove="i18n(this)">--edit &lt;object&gt;</span></dt> <dd> <p><span data-i18n="890e034244bf50406eaea661bb1c5a543fb2cd68d9e760ec48ee11f91c260b8f/f9" data-source="Edit an object&amp;rsquo;s content interactively. The existing content for &amp;lt;object&amp;gt; is pretty-printed into a temporary file, an editor is launched on the file, and the result is parsed to create a new object of the same type as &amp;lt;object&amp;gt;. A replacement ref is then created to replace &amp;lt;object&amp;gt; with the newly created object. See &lt;a href=&quot;git-var&quot;&gt;git-var[1]&lt;/a&gt; for details about how the editor will be chosen." onmousemove="i18n(this)">&Rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &vcy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;. &Scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &lt;object&gt; &pcy;&iecy;&chcy;&acy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &dcy;&lcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;, &acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy; &acy;&ncy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &tcy;&ocy;&gcy;&ocy; &zhcy;&iecy; &tcy;&icy;&pcy;&acy;, &chcy;&tcy;&ocy; &icy; &lt;object&gt;. &Zcy;&acy;&tcy;&iecy;&mcy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&acy; &zcy;&acy;&mcy;&iecy;&ncy;&ucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &zcy;&acy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &lt;object&gt; &vcy;&ncy;&ocy;&vcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&mcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&mcy;. &Scy;&mcy;.  <a href="git-var.html">git-var[1]</a>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy; &tcy;&ocy;&mcy;, &kcy;&acy;&kcy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&bcy;&rcy;&acy;&ncy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;.</span></p> </dd> <dt id="Documentation/git-replace.txt---raw"><span data-i18n="b30415920c5f96f12589bc11c8da8dc830c31ae5df3c18f928cf19fba07f5dde/fe" data-source="--raw" onmousemove="i18n(this)">--raw</span></dt> <dd> <p><span data-i18n="745558e13cd2d3c22ceb441427d158a0fbd568fd94d633d74d53bbd2da9d2953/d7" data-source="When editing, provide the raw object contents rather than pretty-printed ones. Currently this only affects trees, which will be shown in their binary form. This is harder to work with, but can help when repairing a tree that is so corrupted it cannot be pretty-printed. Note that you may need to configure your editor to cleanly read and write binary data." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&jcy;&tcy;&iecy; &ncy;&iecy;&ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&acy;&ncy;&ncy;&ocy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &acy; &ncy;&iecy; &kcy;&rcy;&acy;&scy;&icy;&vcy;&ocy; &ncy;&acy;&pcy;&iecy;&chcy;&acy;&tcy;&acy;&ncy;&ncy;&ocy;&iecy;. &Vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &ecy;&tcy;&ocy; &vcy;&lcy;&icy;&yacy;&iecy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ncy;&acy; &dcy;&iecy;&rcy;&iecy;&vcy;&softcy;&yacy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&tcy;&softcy;&scy;&yacy; &vcy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&iecy;. &Scy; &ecy;&tcy;&icy;&mcy; &scy;&lcy;&ocy;&zhcy;&ncy;&iecy;&iecy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy;, &ncy;&ocy; &ocy;&ncy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&mcy;&ocy;&chcy;&softcy; &pcy;&rcy;&icy; &rcy;&iecy;&mcy;&ocy;&ncy;&tcy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &ncy;&acy;&scy;&tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy;&vcy;&rcy;&iecy;&zhcy;&dcy;&iecy;&ncy;&ocy;, &chcy;&tcy;&ocy; &iecy;&gcy;&ocy; &ncy;&iecy;&vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy; &kcy;&rcy;&acy;&scy;&icy;&vcy;&ocy; &ncy;&acy;&pcy;&iecy;&chcy;&acy;&tcy;&acy;&tcy;&softcy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &vcy;&acy;&mcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy; &dcy;&lcy;&yacy; &chcy;&icy;&scy;&tcy;&ocy;&gcy;&ocy; &chcy;&tcy;&iecy;&ncy;&icy;&yacy; &icy; &zcy;&acy;&pcy;&icy;&scy;&icy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;.</span></p> </dd> <dt id="Documentation/git-replace.txt---graftltcommitgtltparentgt82308203"><span data-i18n="12f6d6b71510ad2a240939b1218521729c53998d768cf6a6c49e66ef77ff3e2f/cf" data-source="--graft &amp;lt;commit&amp;gt; [&amp;lt;parent&amp;gt;&amp;hellip;&amp;ZeroWidthSpace;]" onmousemove="i18n(this)">--graft &lt;&fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy;&gt; [&lt;&rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&gt;&hellip;&ZeroWidthSpace;]</span></dt> <dd> <p><span data-i18n="c97d3e1679fc760b055b97f58833a9d88258f09faf639d4590015ec0ee8b8214/27" data-source="Create a graft commit. A new commit is created with the same content as &amp;lt;commit&amp;gt; except that its parents will be [&amp;lt;parent&amp;gt;&amp;hellip;&amp;ZeroWidthSpace;] instead of &amp;lt;commit&amp;gt;&amp;apos;s parents. A replacement ref is then created to replace &amp;lt;commit&amp;gt; with the newly created commit. Use &lt;code&gt;--convert-graft-file&lt;/code&gt; to convert a &lt;code&gt;$GIT_DIR/info/grafts&lt;/code&gt; file and use replace refs instead." onmousemove="i18n(this)">&Scy;&ocy;&zcy;&dcy;&acy;&jcy;&tcy;&iecy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&lcy;&acy;&ncy;&tcy;&acy;&tscy;&icy;&icy;. &Ncy;&ocy;&vcy;&ycy;&jcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &tcy;&iecy;&mcy; &zhcy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ycy;&mcy;, &chcy;&tcy;&ocy; &icy; &lt;commit&gt;, &zcy;&acy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &iecy;&gcy;&ocy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&yacy;&mcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; [&lt;parent&gt;&hellip;&ZeroWidthSpace;] &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&iecy;&jcy; &lt;commit&gt;. &Zcy;&acy;&tcy;&iecy;&mcy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&acy; &zcy;&acy;&mcy;&iecy;&ncy;&ucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &zcy;&acy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &lt;commit&gt; &vcy;&ncy;&ocy;&vcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&mcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&mcy;. &Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>--convert-graft-file</code>  &dcy;&lcy;&yacy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &fcy;&acy;&jcy;&lcy;&acy;  <code>$GIT_DIR/info/grafts</code>  &icy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &dcy;&lcy;&yacy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy;.</span></p> </dd> <dt id="Documentation/git-replace.txt---convert-graft-file"><span data-i18n="4646954e1df143845e93d75d3e63a77ef3dfeeaa42b01b62a238e90a27babeac/2e" data-source="--convert-graft-file" onmousemove="i18n(this)">--convert-graft-file</span></dt> <dd> <p><span data-i18n="b686c2a2f94d3b214bb3f6265b04afbb77588bee3b07e0194a2fa983f36095f1/2f" data-source="Creates graft commits for all entries in &lt;code&gt;$GIT_DIR/info/grafts&lt;/code&gt; and deletes that file upon success. The purpose is to help users with transitioning off of the now-deprecated graft file." onmousemove="i18n(this)">&Scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&lcy;&acy;&ncy;&tcy;&acy;&tscy;&icy;&ocy;&ncy;&ncy;&ycy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &dcy;&lcy;&yacy; &vcy;&scy;&iecy;&khcy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; &vcy;  <code>$GIT_DIR/info/grafts</code>  &icy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &ecy;&tcy;&ocy;&tcy; &fcy;&acy;&jcy;&lcy; &vcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ucy;&scy;&pcy;&iecy;&khcy;&acy;. &TScy;&iecy;&lcy;&softcy; &scy;&ocy;&scy;&tcy;&ocy;&icy;&tcy; &vcy; &tcy;&ocy;&mcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&mcy;&ocy;&chcy;&softcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy; &ocy;&tcy;&kcy;&acy;&zcy;&acy;&tcy;&softcy;&scy;&yacy; &ocy;&tcy; &ucy;&scy;&tcy;&acy;&rcy;&iecy;&vcy;&shcy;&iecy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&lcy;&acy;&ncy;&tcy;&acy;&tscy;&icy;&icy;.</span></p> </dd> <dt id="Documentation/git-replace.txt--lltpatterngt"><span data-i18n="9df83a6bcad5fa6a5308aff4e66bfec3dd3ea50f97c486c09d1a594b7680e1f9/88" data-source="-l &amp;lt;pattern&amp;gt;" onmousemove="i18n(this)">-l &lt;pattern&gt;</span></dt> <dt id="Documentation/git-replace.txt---listltpatterngt"><span data-i18n="8a44669c266a3f202c9763e0b5075bba882582ba583f23babc0945a89a952fab/5a" data-source="--list &amp;lt;pattern&amp;gt;" onmousemove="i18n(this)">--list &lt;pattern&gt;</span></dt> <dd> <p><span data-i18n="111990903b83cda49018ed2741cdf6c3d2019d24a83126c1246acd88df8d1ef4/cc" data-source="List replace refs for objects that match the given pattern (or all if no pattern is given). Typing &amp;quot;git replace&amp;quot; without arguments, also lists all replace refs." onmousemove="i18n(this)">&Scy;&pcy;&icy;&scy;&ocy;&kcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &ncy;&acy; &zcy;&acy;&mcy;&iecy;&ncy;&ucy; &dcy;&lcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ocy;&mcy;&ucy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ucy; (&icy;&lcy;&icy; &vcy;&scy;&iecy;&khcy;, &iecy;&scy;&lcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;). &Vcy;&vcy;&ocy;&dcy;  &quot;git replace&quot;  &bcy;&iecy;&zcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ycy;&vcy;&ocy;&dcy;&icy;&tcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &vcy;&scy;&iecy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &ncy;&acy; &zcy;&acy;&mcy;&iecy;&ncy;&ucy;.</span></p> </dd> <dt id="Documentation/git-replace.txt---formatltformatgt"><span data-i18n="edf342131bf7a930b11b7bf6bdd333440f797c2b09b5eda9cc2bfb972f3a6441/23" data-source="--format=&amp;lt;format&amp;gt;" onmousemove="i18n(this)">--format=&lt;format&gt;</span></dt> <dd> <p><span data-i18n="c0416cee135affd77c081bddeeee34015b7ffde0d97729cc93a5a03ba4b08883/b7" data-source="When listing, use the specified &amp;lt;format&amp;gt;, which can be one of &lt;code&gt;short&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt; and &lt;code&gt;long&lt;/code&gt;. When omitted, the format defaults to &lt;code&gt;short&lt;/code&gt;." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &lcy;&icy;&scy;&tcy;&icy;&ncy;&gcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&jcy; &lt;&fcy;&ocy;&rcy;&mcy;&acy;&tcy;&gt;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &ocy;&dcy;&ncy;&icy;&mcy; &icy;&zcy;  <code>short</code> ,  <code>medium</code>  &icy;  <code>long</code> . &IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &ocy;&pcy;&ucy;&shchcy;&iecy;&ncy;, &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;  <code>short</code> .</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_formats"><span data-i18n="9f01769a42786d6b549186f1688a1d1da3df5a3d1489cf93b8cea87756ced64e/23" data-source="Formats" onmousemove="i18n(this)">Formats</span></h2> <div> <p><span data-i18n="9e640809c088342d52f38d185efc3a7847a2692c607a55f0e60be06fa2d4ac38/d3" data-source="The following formats are available:" onmousemove="i18n(this)">&Dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ycy;:</span></p> <div> <ul> <li> <p><span data-i18n="a90ed7aa8aba51bc28ea9230c0c5197fbf062071da3e2cb9a4705a21de8a35af/95" data-source="&lt;code&gt;short&lt;/code&gt;: &amp;lt;replaced sha1&amp;gt;" onmousemove="i18n(this)"><code>short</code>  : &lt;&zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy;&ocy; sha1&gt;</span></p> </li> <li> <p><span data-i18n="36e151a8ee2edb303f4e78a161a0ffc232302330e42fbfca35c8734d9f67877d/0f" data-source="&lt;code&gt;medium&lt;/code&gt;: &amp;lt;replaced sha1&amp;gt; &amp;rarr; &amp;lt;replacement sha1&amp;gt;" onmousemove="i18n(this)"><code>medium</code>  : &lt;&zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&jcy; sha1&gt; &rarr; &lt;&zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&jcy; sha1&gt;</span></p> </li> <li> <p><span data-i18n="f6c6e7c014740fda7abb66c95ea400086f9d6f508343a7d22de8e32ee17d36cb/44" data-source="&lt;code&gt;long&lt;/code&gt;: &amp;lt;replaced sha1&amp;gt; (&amp;lt;replaced type&amp;gt;) &amp;rarr; &amp;lt;replacement sha1&amp;gt; (&amp;lt;replacement type&amp;gt;)" onmousemove="i18n(this)"><code>long</code>  : &lt;&zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&jcy; sha1&gt; (&lt;&zcy;&acy;&mcy;&iecy;&ncy;&yacy;&iecy;&mcy;&ycy;&jcy; &tcy;&icy;&pcy;&gt;) &rarr; &lt;&zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&jcy; sha1&gt; (&lt;&tcy;&icy;&pcy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy;&gt;)</span></p> </li> </ul> </div> </div> <h2 class="text-body-emphasis"  id="_creating_replacement_objects"><span data-i18n="56cfe6fe711a7c11f5c3f59e9f64d4a91d67e185486f0e3f5a35eba63d769745/72" data-source="Creating replacement objects" onmousemove="i18n(this)">&Scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy;</span></h2> <div> <p><span data-i18n="2bb0ca4227cd699c9e2a064111541cb13af0eeba85685ccbfdd5b9a5ce5d9402/82" data-source="&lt;a href=&quot;git-hash-object&quot;&gt;git-hash-object[1]&lt;/a&gt;, &lt;a href=&quot;git-rebase&quot;&gt;git-rebase[1]&lt;/a&gt;, and &lt;a href=&quot;https://github.com/newren/git-filter-repo&quot;&gt;git-filter-repo&lt;/a&gt;, among other git commands, can be used to create replacement objects from existing objects. The &lt;code&gt;--edit&lt;/code&gt; option can also be used with &lt;code&gt;git replace&lt;/code&gt; to create a replacement object by editing an existing object." onmousemove="i18n(this)"><a href="git-hash-object.html">git-hash-object[1]</a> ,  <a href="git-rebase.html">git-rebase[1]</a>  &icy;  <a href="https://github.com/newren/git-filter-repo">git-filter-repo</a> , &scy;&rcy;&iecy;&dcy;&icy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  git , &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &zcy;&acy;&mcy;&iecy;&shchcy;&acy;&yucy;&shchcy;&icy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &icy;&zcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;. &Ocy;&pcy;&tscy;&icy;&yucy;  <code>--edit</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy;  <code>git replace</code>  &dcy;&lcy;&yacy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy; &pcy;&ucy;&tcy;&iecy;&mcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;.</span></p> <p><span data-i18n="99fbf4572e93fdfe9ed2329fe830f7902f755b3448390f9334354bb653f16a56/36" data-source="If you want to replace many blobs, trees or commits that are part of a string of commits, you may just want to create a replacement string of commits and then only replace the commit at the tip of the target string of commits with the commit at the tip of the replacement string of commits." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &zcy;&acy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ocy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&khcy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;, &dcy;&iecy;&rcy;&iecy;&vcy;&softcy;&iecy;&vcy; &icy;&lcy;&icy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &chcy;&acy;&scy;&tcy;&softcy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &zcy;&acy;&mcy;&iecy;&shchcy;&acy;&yucy;&shchcy;&ucy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &zcy;&acy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy; &ncy;&acy; &kcy;&ocy;&ncy;&chcy;&icy;&kcy;&iecy; &tscy;&iecy;&lcy;&iecy;&vcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; &ncy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy; &vcy; &pcy;&ocy;&zcy;&icy;&tscy;&icy;&icy; &kcy;&ocy;&ncy;&chcy;&icy;&kcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_bugs"><span data-i18n="ff7c5467ce496637e5ba10662b7a90cde4ed9f8ef33f06fab0893b1c6c800845/88" data-source="Bugs" onmousemove="i18n(this)">Bugs</span></h2> <div> <p><span data-i18n="002ffa719526fe3802f2490717aaa47002b76fb9153eff6002a285b6c1c6207e/e4" data-source="Comparing blobs or trees that have been replaced with those that replace them will not work properly. And using &lt;code&gt;git reset --hard&lt;/code&gt; to go back to a replaced commit will move the branch to the replacement commit instead of the replaced commit." onmousemove="i18n(this)">&Scy;&rcy;&acy;&vcy;&ncy;&iecy;&ncy;&icy;&iecy; BLOB-&ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &icy;&lcy;&icy; &dcy;&iecy;&rcy;&iecy;&vcy;&softcy;&iecy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &bcy;&ycy;&lcy;&icy; &zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy;&ycy;, &scy; &tcy;&iecy;&mcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &icy;&khcy; &zcy;&acy;&mcy;&iecy;&ncy;&yacy;&yucy;&tcy;, &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;. &Acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;  <code>git reset --hard</code>  &dcy;&lcy;&yacy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy;&acy; &kcy; &zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ocy;&mcy;&ucy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ucy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&shchcy;&iecy;&ncy;&icy;&yucy; &vcy;&iecy;&tcy;&kcy;&icy; &kcy; &zcy;&acy;&mcy;&iecy;&ncy;&yacy;&yucy;&shchcy;&iecy;&mcy;&ucy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ucy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;.</span></p> <p><span data-i18n="bf73a94d604a6cb1a351c5f845dc8e2be1a6c137025a42e87f0af01b5814e08e/dd" data-source="There may be other problems when using &lt;code&gt;git rev-list&lt;/code&gt; related to pending objects." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;  <code>git rev-list</code>  &mcy;&ocy;&gcy;&ucy;&tcy; &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&ncy;&ucy;&tcy;&softcy; &icy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ycy;, &scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy; &ocy;&zhcy;&icy;&dcy;&acy;&yucy;&shchcy;&icy;&mcy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;&mcy;&icy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p> <span data-i18n="4cb3087e928a37dbdfd83585756b25e100f10428e5890ced8ed5e5d6128e62e2/cc" data-source="&lt;a href=&quot;git-hash-object&quot;&gt;git-hash-object[1]&lt;/a&gt;&lt;a href=&quot;git-rebase&quot;&gt;git-rebase[1]&lt;/a&gt;&lt;a href=&quot;git-tag&quot;&gt;git-tag[1]&lt;/a&gt;&lt;a href=&quot;git-branch&quot;&gt;git-branch[1]&lt;/a&gt;&lt;a href=&quot;git-commit&quot;&gt;git-commit[1]&lt;/a&gt;&lt;a href=&quot;git-var&quot;&gt;git-var[1]&lt;/a&gt;&lt;a href=&quot;git&quot;&gt;git[1]&lt;/a&gt;&lt;a href=&quot;https://github.com/newren/git-filter-repo&quot;&gt;git-filter-repo&lt;/a&gt;" onmousemove="i18n(this)"><a href="git-hash-object.html">git-hash-object[1]</a><a href="git-rebase.html">git-rebase[1]</a><a href="git-tag.html">git-tag[1]</a><a href="git-branch.html">git-branch[1]</a><a href="git-commit.html">git-commit[1]</a><a href="git-var.html">git-var[1]</a><a href="git.html">git[1]</a><a href="https://github.com/newren/git-filter-repo">git-filter-repo</a></span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-replace">https://git-scm.com/docs/git-replace</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-request-pull.html">
                            git request-pull                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-rerere.html">
                            git rerere                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-reset.html">
                            git reset                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-restore.html">
                            git restore                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-rev-list.html">
                            git rev-list                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-rev-parse.html">
                            git rev-parse                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-revert.html">
                            git revert                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-replace.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>